package com.complaint.service.impl;

import com.complaint.dao.impl.ManagerDAOImpl;
import com.complaint.pojo.Complaint;
import com.complaint.pojo.Manager;
import com.complaint.service.ManagerService;

import java.util.List;

public class ManagerServiceImpl implements ManagerService {
    @Override
    public int regist(Manager manager) {
        return new ManagerDAOImpl().add(manager);
    }

    @Override
    public List<Manager> findByName(String username) {
        return new ManagerDAOImpl().findByName(username);
    }

    @Override
    public int findId(String username) {
        return new ManagerDAOImpl().findId(username);
    }

    @Override
    public List<Complaint> findForMain() {
        return new ManagerDAOImpl().findForMain();
    }
}
